package com.primaryAlgorithm;

/**
 * Description:
 * Copyright:   Copyright (c)2019
 * Company:     zefu
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2021-09-28 16:03:00
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2021-09-28     张李鑫                     1.0         1.0 Version
 */
public class ReverseInt {

    public int reverse(int x) {
        int i=x;
        int count=0;
        while (x>10){
            x/=10;
            count++;
        }
       return 0;
    }

    public static void main(String[] args) {
        int x=1209;
        int count=0;
        while (x>10){
            x/=10;
            count++;
        }
        System.out.println(count);
    }
}
